project(example LANGUAGES CXX)

find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core)

add_executable(sftpTest
    sftptest.cpp
)

add_executable(sshTest
    sshtest.cpp
)

target_include_directories(sftpTest PRIVATE ${CMAKE_SOURCE_DIR}/lib/include)
target_include_directories(sshTest PRIVATE ${CMAKE_SOURCE_DIR}/lib/include)

target_compile_options(sftpTest PRIVATE ${DEFAULT_C_COMPILE_FLAGS})
target_compile_options(sshTest PRIVATE ${DEFAULT_C_COMPILE_FLAGS})

target_link_libraries(sftpTest PRIVATE
    Qt${QT_VERSION_MAJOR}::Core
    ${PROJECT_SOURCE_DIR}/../lib/libssh.dll
    QLibSsh
)

target_link_libraries(sshTest PRIVATE
    Qt${QT_VERSION_MAJOR}::Core
    ${PROJECT_SOURCE_DIR}/../lib/libssh.dll
    QLibSsh
)
